﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BusinessCardListCtrl.ascx.cs" Inherits="ShopOnline.Controls.BusinessCardListCtrl" %>

<style>
    .bcitem
    {
        margin:5px;
    }
    
    .delete
    {
        float:right; margin-right: 5px
    }
</style>

<script type="text/javascript">
    function onMouseOver(div) {
        //$(div).find('.delete').show();
    }

    function onMouseOut(div) {
        //$(div).find('.delete').hide();
    }
</script>

<asp:DataList ID="datalist" runat="server" >
    <ItemTemplate>
        <div class='bcitem' onmouseover="onMouseOver(this);" onmouseout=" onMouseOut(this);" >
            <div>
                <div class='bcContainer ItemID='<%# Eval("ID") %>' >
                    
                </div>
                <asp:LinkButton style='display:none' class='delete' Visible='<%# POSSystem.BLL.View_Users.GetCurrentUser() != null %>' OnClientClick="return confirm('Are you sure to delete this business card?');" ID="btnDelete" ToolTip="Delete Business Card" ItemID='<%# Eval("ID") %>' runat="server" OnClick="btnDelete_OnClick">
                        <img src="../../images/delete_icon.gif" />
                </asp:LinkButton>
            </div>
        </div>
    </ItemTemplate>
</asp:DataList>